<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .father{
            width: 300px;
            height: 300px;
            background-color: aqua;
        }
        .son{
            width: 200px;
            height: 200px;
            background-color: brown;
        }
        span{
            display: inline-block;
            width: 50px;
            height: 30px;
            background-color: chartreuse;
        }
    </style>
</head>
<body>
    <div class="father">
        <div class="son">
            <span class="span">sjflasjf</span>
        </div>
    </div>
</body>
<script>
    let father = document.getElementsByClassName('span')[0];
    father.addEventListener('click',()=>{
        console.log('father');
        
    })
</script>
</html>